const { merge } = require('webpack-merge')
// 通用配置
const baseWebpackConfig = require('./webpack.config.base')
// 开发模式
const devWebpackConfig = {
  mode: 'development',
  devtool: 'eval-source-map',
  stats: { children: false } // 不需要日志消息
}
// 使用 webpack-merge 进行合并
const webpackConfig = merge(baseWebpackConfig, devWebpackConfig)

module.exports = webpackConfig